package com.jinzhi.jzweb.service.impl;

import com.jinzhi.common.base.CoreServiceImpl;
import com.jinzhi.jzweb.dao.ItemBankDao;
import com.jinzhi.jzweb.domain.ItemBankDO;
import com.jinzhi.jzweb.service.ItemBankService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 
 * <pre>
 * 题库表
 * </pre>
 * <small> 2020-02-24 21:00:11 | lance</small>
 */
@Service
public class ItemBankServiceImpl extends CoreServiceImpl<ItemBankDao, ItemBankDO> implements ItemBankService {

    @Override
    public List<Map<Object,Object>> selRandList(Map map){
        return baseMapper.selRandList(map);
    }

    @Override
    public List<Map<Object,Object>> selRandPractical(Map map){
        return baseMapper.selRandPractical(map);
    }

    @Override
    public List<Map<Object,Object>> selNumByKpoints(Long kpoints_id){
        return baseMapper.selNumByKpoints(kpoints_id);
    }

    @Override
    public List<String> selectBankBycbatchId(Long cbatchId) {
        return baseMapper.selectBankBycbatchId(cbatchId);
    }
}
